<?php
namespace app\api\controller;
use think\Controller;
use think\Db;
use think\Request;
use think\View;
use app\api\logic\Indexs;
class User extends Controller
{
    public function __construct(Request $request){
        parent::__construct($request);
        $this->assign('title','铭家');
    }
    /**
    * 跳转到首页
    */
    public function index(Request $request)
    {  
        $this->assign('title','首页');
        return view('index');
    }
    
 //    public function userlist(){
	// 	$photo = DB::name('user')->select();
	// 	// dump($username);die;
	// 	$this->assign('photo',$photo);
	// 	return $this->fetch('userlist',['title'=>'用户相册']);
	// }
}

?>